package com.qf.xiaomi.service.impl;

import com.qf.xiaomi.dao.AddressDao;
import com.qf.xiaomi.dao.impl.AddressDaoImpl;
import com.qf.xiaomi.pojo.TbAddress;
import com.qf.xiaomi.service.AddressService;

import java.util.List;

public class AddressServiceImpl implements AddressService {
    AddressDao dao=new AddressDaoImpl();
    @Override
    public List<TbAddress> selectAddress(long uid) {

        return dao.selectAddress(uid);
    }

    @Override
    public int deleteById(long aid) {

        return dao.deleteById(aid);
    }

    @Override
    public int updateAdress(TbAddress tbAddress) {

        return dao.updateAdress(tbAddress);
    }

    @Override
    public int setDefault(TbAddress tbAddress) {

        return dao.setDefault(tbAddress);
    }

    @Override
    public int addAddress(TbAddress tbAddress) {

        return dao.addAddress(tbAddress);
    }
}
